package cn.sunline.dreamvalue.constant;


/**
 * @author 11292
 * @title: ResultStatus
 * @projectName dream-value
 * @description: 枚举了一些常用API操作码
 * @date 2020/5/7 15:00
 */
public enum ResultStatus {
    SUCCESS("200", "处理成功"),
    FAILED("500", "处理失败"),
    SYS_INNER_EXCEPTION("1000", "系统内部异常"),
    CUSTOMER_NOT_EXISTS_FAILED("1001", "梦想账号不存在"),
    PARAMETER_REQUIRED_FAILED("1002", "缺少必填参数"),
    PARAMETER_VALUE_INCORRECT("1003", "参数值不正确"),
    DREAMVALUE_NOT_ENOUGH("1020", "梦想值不足"),
    SUBTRACT_DREAMVALUE_LESS_THAN_0_FAILED("1021", "调减梦想值不能为负数"),
    ADD_DREAMVALUE_LESS_THAN_0_FAILED("1022", "调增梦想值不能为负数"),
    REPEAT_REQUEST("1030", "重复的请求"),
    DREAM_ACCT_STATUS_CLOSED("1040", "梦想账户已注销"),
    DATE_FORMAT_ERROR("1050", "日期或时间格式不正确"),
    ;
    private String status;
    private String statusMsg;

    private ResultStatus(String status, String statusMsg) {
        this.status = status;
        this.statusMsg = statusMsg;
    }

    public String getStatus() {
        return status;
    }

    public String getStatusMsg() {
        return statusMsg;
    }

}
